<template>
  <div>
    <el-table
    :data="tableData"
    :stripe="true"
    style="width: 100%">
      <el-table-column
        label="编号">
        <template slot-scope="scope">
          <span>{{ scope.row.id }}</span>
        </template>
      </el-table-column>
      <el-table-column
        label="文件编号">
        <template slot-scope="scope">
          <span >{{ scope.row.file_id }}</span>
        </template>
      </el-table-column>
      <el-table-column
        label="文件名">
        <template slot-scope="scope">
          <span >{{ scope.row.file_name }}</span>
        </template>
      </el-table-column>
      <el-table-column
        label="小组">
        <template slot-scope="scope">
          <span >{{ scope.row.group_id }}</span>
        </template>
      </el-table-column>
      <el-table-column
        label="操作日期">
        <template slot-scope="scope">
          <span >{{ scope.row.t_optDate}}</span>
        </template>
      </el-table-column>
      <el-table-column
        label="操作时间">
        <template slot-scope="scope">
          <span >{{ scope.row.t_optTime }}</span>
        </template>
      </el-table-column>
      <el-table-column
        label="评级">
        <template slot-scope="scope">
          <el-tag
          :type=tag[scope.row.status]
          disable-transitions>{{rate[scope.row.status].value}}</el-tag>
        </template>
      </el-table-column>
    </el-table>
  </div>

</template>

<script>
import { showTLogInfor } from '@/api/user'
export default{
  data() {
    return{
      tableData:[],
      tag:['info','success','success','warning','','danger'],
      rate: []
    }
  },
  created: function() {
    showTLogInfor(this.$store.getters.token).then(response => {
      this.tableData = response.data.TLogInfor
      this.rate=response.data.rate
    })
  }
  

}


</script>

<style lang="scss" scoped>

</style>
  